package cn.luowb.checkchat.service.impl;

import cn.luowb.checkchat.dao.entity.CategoryDO;
import cn.luowb.checkchat.dao.mapper.CategoryMapper;
import cn.luowb.checkchat.dto.resp.CategoryHotVO;
import cn.luowb.checkchat.service.CategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author heimenkyou
 * @description 针对表【category(分类)】的数据库操作Service实现
 * @createDate 2025-09-01 19:07:09
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, CategoryDO>
        implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<CategoryHotVO> getHot() {
        return categoryMapper.getHot(5);
    }
}




